public class HomeWork04 {
	public static void main(String[] args){
		for(int i = 100; i < 1000; i++){
			int one = i % 10;
			int ten = i / 10 % 10;
			int hun = i / 100;
			if((int)Math.pow(one,3) + (int)Math.pow(ten,3) + (int)Math.pow(hun,3) == i){
				System.out.println("水仙花数：" + i);
			}
			// if(one * one * one + ten * ten * ten + hun * hun * hun == i ){
			// System.out.println("水仙花数：" + i);

			// }
		}
	}
}